<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script type="text/javascript">
        var shareData = {
        			title: "{$share['title']}",
      	      		link: "{$share['url']}",
      	      		desc: "{$share['des']}",
                	imgUrl: "{$share['pic']}"
                	{if $_GPC['do']=='bremark'}
                	,trigger: function (res) {
                		console.log(res);
                	},
                	success: function (res) {
                		geBremark();
          	        }
                	{/if}
        	   };
        jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || { jsApiList:[] };
        jssdkconfig.debug = false;
        jssdkconfig.jsApiList = ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','showOptionMenu','chooseWXPay','chooseImage','uploadImage','addCard','chooseCard','openCard'];
    	wx.config(jssdkconfig);
        	wx.ready(function () {
        	    wx.onMenuShareAppMessage(shareData);
        	    wx.onMenuShareTimeline(shareData);
        	    wx.onMenuShareQQ(shareData);
        	    wx.onMenuShareWeibo(shareData);
        	    
        	});
</script>